package org.szy.plugin.dev.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import org.szy.core.common.entity.BaseEntity;
import org.szy.core.common.listener.BaseInsertListener;
import org.szy.core.common.listener.BaseUpdateListener;
import org.szy.plugin.dev.constant.DevMessageUserConstant;

import java.time.LocalDateTime;

/**
 * 站内消息用户关联实体
 *
 * @author wangbuhao
 * @since 2023-06-28 18:17:41
 **/
@Table(value = "dev_message_user")
public class DevMessageUser {

    /** id */
    @Id(keyType = KeyType.Generator, value = KeyGenerators.flexId)
    private Long id;
    /**
     * 消息id
     */
    private Long messageId;
    /**
     * 接收人id
     */
    private Long receiverId;
    /**
     * 接受名称
     */
    private String receiverName;
    /**
     * 状态（字典 0未读 1已读 9删除）
     * {@link org.szy.plugin.dev.constant.DevMessageUserConstant}
     */
    private Integer messageStatus = DevMessageUserConstant.STATUS_WEIDU;
    /**
     * 状态
     * {@link org.szy.plugin.dev.constant.DevMessageUserConstant}
     */
    private String messageState = DevMessageUserConstant.STATE_DANBAN;
    /**
     * 读取时间
     */
    private LocalDateTime readTime;

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public Integer getMessageStatus() {
        return messageStatus;
    }

    public void setMessageStatus(Integer messageStatus) {
        this.messageStatus = messageStatus;
    }

    public LocalDateTime getReadTime() {
        return readTime;
    }

    public void setReadTime(LocalDateTime readTime) {
        this.readTime = readTime;
    }

    public String getMessageState() {
        return messageState;
    }

    public void setMessageState(String messageState) {
        this.messageState = messageState;
    }
}
